import { FC } from "react"

import { SFormItem } from "@/components/common"
import StyleSelect from "@/components/common/styleSelect"
import { useLocale } from "@/locales"

const NetTypeSelect: FC<any> = ({ setFieldValue }) => {
	const { formatMessage } = useLocale()
	//统计日期
	//全量数据
	const options = [
		{ label: formatMessage({ id: "report.net_type1" }), value: 1 },
		{ label: formatMessage({ id: "report.net_type0" }), value: 2 }
	]

	return (
		<SFormItem name="netType">
			<label>{formatMessage({ id: "report.profit_and_loss_ranking_lb" })} &nbsp;</label>
			<StyleSelect
				onChange={value => setFieldValue("netType", value)}
				defaultValue={options[0].value}
				options={options}
				style={{ width: "220px" }}
			/>
		</SFormItem>
	)
}

export default NetTypeSelect
